home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,701 to 4,800 / aol-file-protocol-4400-4701-to-4800.zip / AOLDLs / Autocad Utilities / MAKESCR_ V1.2 Script Generator / MAKESCR.exe / README.TXT < prev    next >
Text File  |  1997-02-17  |  3KB  |  75 lines

  1. The following simple directions are provided to help you start using
  2. SCRIPTER and script files.
  3.  
  4. Autocad has the ability to automate repetative sequences of commands by 
  5. reading a text file of commands.   The text file of commands is then called 
  6. a "SCRIPT" file.  Just as an actor can read a script of predetermined
  7. lines in a play, Autocad can read a script of commands.  The text file
  8. must be saved with the extension ".SCR".  
  9.  
  10. Now assume every time you decide to plot a drawing you issue the following
  11. commands:
  12.         zoom
  13.         extents
  14.         qsave
  15.         plot
  16.         [enter]
  17.         [enter]
  18.         [enter]
  19.  
  20. Those comands can be saved as a SCRIPT file called PLOT.SCR. 
  21. (See file provided.)  
  22. By issuing the command SCRIPT (while in a drawing) 
  23. Autocad will prompt you to give it the location a script file.  
  24. If you respond by  providing the location of PLOT.SCR you will have 
  25. effectively replaced four commands with one.  
  26.  
  27. That illustration may not be very impressive.  But what if you wanted 
  28. to run the same script file on every drawing in a directory.  
  29. The script might be to plot... or cut off certain layers, count blocks, 
  30. swap out borders, etc.  Now you need SCRIPTER to merge the script file
  31. with a command to open each drawing. The result will be a 
  32. large script file for Autocad to process.
  33.  
  34. SCRIPTER can be run from a DOS prompt.  SCRIPTER creates a large script file.
  35. Provide SCRIPTER with a path to a directory of drawings and the 
  36. path and name of a script file to run on each drawing.  Use a text editor 
  37. to examine the "all*.scr" file produced by SCRIPTER.  
  38. SCRIPTER does not run the script, Autocad must read and run the script file.
  39.  
  40. Simple start up directions:
  41. 1) Make a directory on your C:\ drive called "SCRIPTS".
  42. 2) Change directory (cd) to the directory you just created and copy both
  43.    SCRIPTER and PLOT.SCR into that directory.
  44. 3) Assuming the path to your acad drawings is c:\acad\dwgs, issue
  45.    the following command:
  46.    SCRIPTER  c:\acad\dwgs plot.scr
  47. 4) Note SCRIPTER responds by telling you how many drawings were located
  48.    in the directory c:\acad\dwgs. It also reports a new file is located in
  49.    that directory.  It will be called allplot.scr.  The origional script
  50.    file you provided is untouched.  
  51. 5) When you return to Autocad issue the script command and tell Autocad to 
  52.    use the file called allplot.scr.  
  53. 6) WATCH!!!!
  54.  
  55. FOR YOUR INFORMATION.
  56. If you have succesfully printed one drawing the plot settings are
  57. already set and will be replicated again and again.
  58.  
  59. Before creating large script files for Autocad to process make sure the
  60. model script file will run and terminate successfully. Test the script
  61. plot.scr and note it only plots the drawing you are working on.  But it
  62. has the correct number of "newline" commands built in.  Be careful when 
  63. you start counting [enter]'s.
  64.  
  65. I find it helpful to set cmddia=0 when creating script files.  Autocad
  66. reads script files as if cmddia=0.  You can issue the command cmddia
  67. from an Autocad command prompt.
  68.  
  69. If the script breaks because it can't find a menu or a font,
  70. you can answer the question and then type RESUME to continue the script.
  71.  
  72. GOOD LUCK
  73. RTALLEYJR@aol.com
  74.  
  75.